package com.shenda.api.entity;

import java.util.List;

import com.shenda.api.dto.DataDTO;
import com.swak.entity.IdEntity;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 陀螺仪
 * 
 * @author lifeng
 */
@Setter
@Getter
@Accessors(chain = true)
public class Gyro extends IdEntity<String> {

	private static final long serialVersionUID = 1L;

	private String name; // mac crc16
	private String cjms; // 采集模式 2
	private String cjpl;// 采集频率 4
	private String odr; // 采集ODR 4
	private String lastFlushTime;// 最后一次清除数据的时间
	private String status;// 状态
	private List<DataDTO> uploads; // 上传

	@Override
	public String prePersist() {
		return this.id;
	}
}
